package org.liliya.service;

import org.liliya.client.ProductClientFeign;
import org.liliya.pojo.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liliya
 * @date 2021/4/24 14:36
 */
@Service
public class ProductService {
    @Autowired
    ProductClientFeign productClientFeign;

    public List<Product> productList(){
        return productClientFeign.listProducts();
    }
}
